package com.roger.myHome.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_expenses")
public class TbExpenses implements Serializable {
    @TableField(value = "id")
    private Long id;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "pay_money")
    private BigDecimal payMoney;

    @TableField(value = "content")
    private String content;

    @TableField(value = "pay_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;

    @TableField(value = "address")
    private String address;

    @TableField(value = "full_address")
    private String fullAddress;

    @TableField(value = "country")
    private String country;

    @TableField(value = "province")
    private String province;

    @TableField(value = "city")
    private String city;

    @TableField(value = "channel")
    private String channel;

    @TableField(value = "type")
    private String type;
}
